package com.mimosa.common.types;

import org.apache.commons.lang3.StringUtils;

/**
 * 操作结果消息信息
 * 
 * @author ggeagle
 * 
 */
public final class ResultMessage {
	/**
	 * 结果类型
	 */
	private ResultType resultType = ResultType.SUCCESS;
	/**
	 * 结果消息
	 */
	private String msg = StringUtils.EMPTY;

	public ResultType getResultType() {
		return resultType;
	}

	public void setResultType(ResultType resultType) {
		this.resultType = resultType;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	@Override
	public String toString() {
		return String.format("{'resultType':'%s','msg':'%s'}", this.getResultType().name(), this.getMsg());
	}
}